﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/css/global.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/main.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/themes/default/easyui.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/themes/icon.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.8.2.min.js")" type="text/javascript"></script>
    <script src="../../Scripts/preety.js" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.easyui.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/json3.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/site.js")" type="text/javascript"></script>
    <script type="text/javascript">
        var isReportOrPlan = false;
    </script>
    <script src="@Url.Content("~/Scripts/plan.js")" type="text/javascript"></script>
    @RenderSection("ScriptAndCss", false)
    <script type="text/javascript">

        $(function () {
            if (!isReportOrPlan) {
                $('#quickAccess').tree({
                    url: '@(Url.Action("quickAccess", "Navigate"))',
                    onClick: function (node) {

                        if (node.id == 'monitor') {
                            redirectbppm(node.attributes.sso, node.attributes.userdept, node.attributes.usercompany);
                        }
                        else if (node.id == 'report') {
                            redirectreport(node.attributes.sso, node.attributes.siteid, node.attributes.userdept, node.attributes.usercompany);
                        }
                        else {
                            window.open(node.attributes.sso);
                        }
                    }

                });
            }

        })

    </script>
</head>
<body>
    <div class="wrapper">
        <div class="All_top">
            <div class="headpart_A">
                <img src="../../Content/images/logo_fj.jpg" alt="" />
            </div>
            <div class="headpart_B ui-icons">
                <p class="headpart_2_B ui-icons">@Html.Action("HeaderContent", "Account")</p>
                <ul>
                    @{
                        string _controller = ViewContext.RouteData.Values["controller"].ToString();
                        string _action = ViewContext.RouteData.Values["Action"].ToString();                              
                                    
                        <li><i class="@((_controller == "Navigate" && _action == "Index") || _controller == "Search" ? "mainlevel_bgA ui-icons" : "mainlevel_bg2A ui-icons")">
                        </i></li>
                        <li class="mainlevel"><i class="@((_controller == "Navigate" && _action == "Index") || _controller == "Search" ? "mainlevel_bg" : "mainlevel_bg2")">
                            <a href="@(Url.Action("Index", "Navigate"))">个人工作台</a></i></li>
                        <li><i class="@((_controller == "Navigate" && _action == "Index") || _controller == "Search" ? "mainlevel_bgB ui-icons" : "mainlevel_bg2B ui-icons")">
                        </i></li>
                       
                        if (ViewBag.UserDept == "经济信息中心" && ViewBag.UserCompany == "福建省烟草专卖局")
                        {
                        <li class="padding3"></li>
                        <li><i class="@((_controller == "Navigate" && _action == "Maintenance") || _controller == "Search" ? "mainlevel_bgA ui-icons" : "mainlevel_bg2A ui-icons")">
                        </i></li>
                        <li class="mainlevel"><i class="@((_controller == "Navigate" && _action == "Maintenance") || _controller == "Search" ? "mainlevel_bg" : "mainlevel_bg2")">
                            <a href="@(Url.Action("Maintenance", "Navigate"))">今日运维一览</a></i></li>
                        <li><i class="@((_controller == "Navigate" && _action == "Maintenance") || _controller == "Search" ? "mainlevel_bgB ui-icons" : "mainlevel_bg2B ui-icons")">
                        </i></li>
                        }

                        if (ViewBag.UserDept != "中软海晟技术支持组")
                        {
                            
                        <li class="padding3"></li>
                        <li><i class="@(_controller == "PlanManagement" ? "mainlevel_bgA ui-icons" : "mainlevel_bg2A ui-icons")">
                        </i></li>
                        <li><i class="@(_controller == "PlanManagement" ? "mainlevel_bg" : "mainlevel_bg2")">
                            <a href="@(Url.Action("Index", "PlanManagement"))">计划管理</a></i></li>
                        <li><i class="@(_controller == "PlanManagement" ? "mainlevel_bgB ui-icons" : "mainlevel_bg2B ui-icons")">
                        </i></li>
                        
                        <li class="padding3"></li>
                        <li><i class="@(_controller == "SystemManagement" ? "mainlevel_bgA ui-icons" : "mainlevel_bg2A ui-icons")">
                        </i></li>
                        <li><i class="@(_controller == "SystemManagement" ? "mainlevel_bg" : "mainlevel_bg2")">
                            <a href="@(Url.Action("Index", "SystemManagement"))">系统管理</a></i></li>
                        <li><i class="@(_controller == "SystemManagement" ? "mainlevel_bgB ui-icons" : "mainlevel_bg2B ui-icons")">
                        </i></li>
                        
                        <li class="padding3"></li>
                        <li><i class="@(_controller == "Network" ? "mainlevel_bgA ui-icons" : "mainlevel_bg2A ui-icons")">
                        </i></li>
                        <li><i class="@(_controller == "Network" ? "mainlevel_bg" : "mainlevel_bg2")"><a href="@(Url.Action("Index", "Network"))">
                            网络管理</a></i></li>
                        <li><i class="@(_controller == "Network" ? "mainlevel_bgB ui-icons" : "mainlevel_bg2B ui-icons")">
                        </i></li>
                        
                        <li class="padding3"></li>
                        <li><i class="@(_controller == "ITSM" ? "mainlevel_bgA ui-icons" : "mainlevel_bg2A ui-icons")">
                        </i></li>
                        <li><i class="@(_controller == "ITSM" ? "mainlevel_bg" : "mainlevel_bg2")"><a href="@(Url.Action("Index", "ITSM"))">
                            ITSM</a></i></li>
                        <li><i class="@(_controller == "ITSM" ? "mainlevel_bgB ui-icons" : "mainlevel_bg2B ui-icons")">
                        </i></li>
                        }
                        <li class="padding3"></li>
                        <li><i class="@(_controller == "ReportView" ? "mainlevel_bgA ui-icons" : "mainlevel_bg2A ui-icons")">
                        </i></li>
                        <li><i class="@(_controller == "ReportView" ? "mainlevel_bg" : "mainlevel_bg2")"><a href="@(Url.Action("Index", "ReportView"))">
                            报表查询</a></i></li>
                        <li><i class="@(_controller == "ReportView" ? "mainlevel_bgB ui-icons" : "mainlevel_bg2B ui-icons")">
                        </i></li>
                        if ((bool)ViewBag.IsConfigAdmin)
                        {
                        <li class="padding3"></li>
                        <li><i class="@(_controller == "AdminPermission" ? "mainlevel_bgA ui-icons" : "mainlevel_bg2A ui-icons")">
                        </i></li>
                        <li><i class="@(_controller == "AdminPermission" ? "mainlevel_bg" : "mainlevel_bg2")">
                            <a href="@(Url.Action("CreateUser", "AdminPermission"))">管理员配置</a></i></li>
                        <li><i class="@(_controller == "AdminPermission" ? "mainlevel_bgB ui-icons" : "mainlevel_bg2B ui-icons")">
                        </i></li>
                        }
                        
                    }
                </ul>
            </div>
            <div style="clear: both;">
            </div>
        </div>
        @*        @if (ViewBag.IsPlanManage != null)
        {
            @RenderBody()
        }
        else
        {*@
        <div class="center">
            <div class="main_left">
                <div class="headpart ui-icons">
                    <span class="ui-icons"></span>
                    <h3>
                        @ViewBag.Title</h3>
                </div>
                <div class="left_menu_wrapper">
                    <ul class="left_menu" id="quickAccess">
                    </ul>
                </div>
            </div>
            <div class="main_right">
                @RenderBody()
            </div>
        </div>
        @*        }*@
        <div style="clear: both;">
        </div>
        <div class="foot">
            <div class="ui-icons footcenter">
                <div class="foot_main">
                    © 2013 福建烟草. All Rights Reserved.
                </div>
            </div>
        </div>
    </div>
</body>
</html>
